<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h1>The Goods Page</h1>
	<a th:href="@{/goods/doGoodsAddUI}">添加商品</a>
	<table>
	<thead>
    <tr>
      <th>id</th>
      <th>name</th>
      <th>remark</th>
      <th>createdTime</th>
      <th colspan="2">operation</th>
    </tr>
  </thead>
   <tbody>
    <tr th:each="g:${goods}">
      <td th:text="${g.id}">1</td>
      <td th:text="${g.name}">AAAAAAA</td>
      <td th:text="${g.remark}">AA....</td>
      <td th:text="${#dates.format(g.createdTime, 'yyyy/MM/dd HH:mm')}">2020/08/31</td>
      <td><a href="#" th:href="@{/goods/doDeleteById/{id}(id=${g.id})}">delete</a></td>
      <td><a href="#" th:href="@{/goods/doFindById/{id}(id=${g.id})}">update</a></td>
    </tr>
  </tbody>
	</table>
</body>
</html>